package com.ruijie.autotest.log.impl.data;

import com.alibaba.fastjson.JSONObject;
import com.ruijie.autotest.log.core.data.IRow;

public class JsonRow implements IRow {
	private final JSONObject row;

	public JsonRow(JSONObject row) {
		this.row = row;
	}

	@Override
	public String stringValueOf(String columnName) {
		return row.getString(columnName);
	}

	@Override
	public String[] columns() {
		return row.keySet().toArray(new String[0]);
	}
}
